package tech.edwardvan.springsecuritydemo.security.common;

/**
 * Spring Security相关配置常量
 *
 * @author EdwardVan
 */
public class SecurityConstant {
    /**
     * 权限集合的key
     **/
    public static final String AUTHORITIES_CLAIMS = "authorities";

    /**
     * JWT token 相关值
     */
    public static final String TOKEN_HEADER = "Authorization";

    /**
     * Swagger WHITELIST
     */
    public static final String[] SWAGGER_WHITELIST = {
            "/swagger-ui.html",
            "/swagger-ui/*",
            "/swagger-resources/**",
            "/v2/api-docs",
            "/v3/api-docs",
            "/webjars/**",
            "/doc.html",
    };

    /**
     * System WHITELIST
     */
    public static final String[] SYSTEM_WHITELIST = {
            "/login.html"
    };
}
